﻿using Acme.ConcreteMixDesign.Topics;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Acme.ConcreteMixDesign.Mappings
{
    /// <summary>
    /// 表实体配置类
    /// </summary>
    public class TopicsMap : IEntityTypeConfiguration<Topic>
    {
        public void Configure(EntityTypeBuilder<Topic> builder)
        {
            //对表的映射
            builder.ToTable("Topics");
        }
    }
}
